package ua.kratik.seabattle.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import ua.kratik.seabattle.dao.DataObject;

@Entity
@Table(name = "shipDirections")
public class ShipDirection implements DataObject{
	
	@Id
	@Column(name = "id")
	private Integer id;
	
	@Column(name = "name")
	private String direction;
	
//	//FK
//	@OneToMany(fetch = FetchType.LAZY,mappedBy = ShipLayout.FK_DIRECTION)
//	private List<ShipLayout> shipLayouts;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

//	public List<ShipLayout> getShipLayouts() {
//		return shipLayouts;
//	}
//
//	public void setShipLayouts(List<ShipLayout> shipLayouts) {
//		this.shipLayouts = shipLayouts;
//	}
	
}
